local yitu_active = fk.CreateSkill{
  name = "#hanqing__yitu_active",
}

Fk:loadTranslationTable{
  ["#hanqing__yitu_active"] = "移图",
}

yitu_active:addEffect("active", {
  card_num = 0,
  target_num = 2,
  card_filter = Util.FalseFunc,
  target_filter = function (self, player, to_select, selected)
    if #selected < 2 then
      if #selected == 0 then
        return to_select:hasSkill(self.skill_name, true)
      else
        return not to_select:hasSkill(self.skill_name, true)
      end
    end
  end,
  feasible = function (self,  player, selected, selected_cards)
    if #selected == 2 and #selected_cards == 0 then
      return selected[1]:hasSkill(self.skill_name, true) and not selected[2]:hasSkill(self.skill_name, true)
    end
  end,
})

return yitu_active
